package com.xiaomo.gitee.datamanager.mapper;
import com.xiaomo.gitee.datamanager.cache.MybatisRedisCache;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.xiaomo.gitee.datamanager.entity.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

@Mapper
@CacheNamespace(implementation = MybatisRedisCache.class,eviction = MybatisRedisCache.class)
public interface RoleMapper extends BaseMapper<Role> {

    Role selectOneById(@Param("id") Long id);

    Role selectOneByName(@Param("name") String name);

}




